<!DOCTYPE html >
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
</head>

<body>

<div id="msg"></div>
</body>
</html>
<script>
window.addEventListener('message',function(e)
	{
		console.log(e)
		document.getElementById("msg").innerHTML="信息来源："+e.origin+"<br>"+e.data
	
	}
)
</script>